﻿using MebAppMarketplace.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace MebAppMarketplace.Biz
{
    public static class ServiceExtension
    {

        public static List<T> GetList<T>(this BaseService<T> service, int page, int size) where T : BaseModel
        {
            return service.AsService<T>().DbSet.OrderBy(x => x.ID).GetList(page, size);
        }
    }
}
